package homework.ooday03.management;

public class Test {
    public static void main(String[] args) {
        General[] gens = new General[1];
        gens[0] = new General("总监",20,50000);
        for(int i=0;i<gens.length;i++){
            gens[i].finishWork();
            gens[i].trainEmployees();
            gens[i].solveProblems();
            gens[i].editBooks();
        }

        Teacher teacher = new Teacher("讲师",30,2000);
        System.out.println(teacher.name);
        System.out.println(teacher.age);
        System.out.println(teacher.salary);

        ProjectManager[] pms = new ProjectManager[1];
        pms[0] = new ProjectManager("项目经理",40,10000);
        for(int i=0;i<pms.length;i++){
            pms[i].finishWork();
            pms[i].editBooks();
        }

        HeadTeacher[] hts = new HeadTeacher[1];
        hts[0] = new HeadTeacher("班主任",50,6000);
        for(int i=0;i<hts.length;i++){
            hts[i].finishWork();
        }
    }
}
